package com.gxa.clientkill.service.Impl;

import com.gxa.clientkill.mapper.KillMapper;
import com.gxa.clientkill.pojo.Kill;
import com.gxa.clientkill.service.KillService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Jun
 * @version 1.0
 * @date 2020/11/12 9:35
 */

@Service("killService")
public class KillServiceImpl implements KillService {

    @Resource
    KillMapper killMapper;

    @Override
    public Integer add(Kill kill) {
        return killMapper.insertSelective(kill);
    }

    @Override
    public Integer del(Integer id) {
        return killMapper.deleteByPrimaryKey(id);
    }

    @Override
    public List<Kill> list() {
        return killMapper.selectAll();
    }

    @Override
    public Integer send(Integer id) {
        return null;
    }

    @Override
    public Integer update(Kill kill) {
        return killMapper.updateByPrimaryKeySelective(kill);
    }

    @Override
    public Kill sel(Integer id) {
        return null;
    }
}
